<?php

/**
 * OfferImage form.
 *
 * @package    reduceri-cadouri
 * @subpackage form
 * @author     Your name here
 */
class OfferImageForm extends BaseOfferImageForm
{
  public function configure()
  {
    $this->widgetSchema['offer_id'] = new sfWidgetFormInputHidden();
    $this->widgetSchema['image'] = new sfWidgetFormInputFile();
    
    $this->validatorSchema['image'] = new sfValidatorFile(array(
      'required'   => false,
      'path'       => sfConfig::get('sf_upload_dir').'/offers',
      'mime_types' => 'web_images',
    ));
  }
}
